/**
 * @class Ext.ux.form.TextFieldEx
 * @extends Ext.form.TextField
 * @created JBob 20110707
 * 
 * For example:
   {
	  xtype : "textfieldex",
	  fieldLabel : "label1",
	  name : "name1",
	  anchor : '99%',
	  tooltip : {text:'Please input something.',title:'Tips'}  
   }
 */
 
Ext.ns('Ext.ux.form');
Ext.ux.form.TextFieldEx = Ext.extend(Ext.form.TextField,{  
    tooltip:{},  
    onRender:function(ct, position){  
        Ext.ux.form.TextFieldEx.superclass.onRender.call(this, ct, position);  
        if(this.tooltip.text)  
            new Ext.ToolTip({target:this.id,trackMouse:false,draggable:true,
            maxWidth:200,minWidth:100,title:this.tooltip.title,html:this.tooltip.text});  
    }
});  
Ext.reg('textfieldex',Ext.ux.form.TextFieldEx);